<?php if ($this->totalItemCount > $this->itemCountPerPage): ?>
 <div class="pagingControl">		
	<div class="centerWrap">
		<div class="pageCenter">
			
			<ul class="paginations">
    			 <!-- First page link -->
    			 <li>
        			<?php if (isset($this->previous)): ?>
        				  <a onclick="Fmit.loadComment('<?php echo $this->limit;?>', '<?php echo $this->first;?>');return false;" href="javascript:void(0);" class="first-btn" >&laquo;</a>
        			<?php else: ?>
        					<a href="javascript:void(0);" class="first-btn disabled">&laquo;</a>
        			<?php endif; ?>
    			</li>
    			 <!-- Previous page link -->
    			 <li>    
    			<?php if (isset($this->previous)): ?>
    				  <a onclick="Fmit.loadComment('<?php echo $this->limit;?>', '<?php echo $this->previous;?>');return false;" class="prev-btn">&lsaquo;</a>
    			<?php else: ?>
    				  <a href="javascript:v;oid(0);" class="prev-btn disabled">&lsaquo;</a>
    			<?php endif; ?>
		        </li>
				<!-- Last page link -->
				<?php if($this->firstPageInRange > ($this->first + 1)) : ?>					
					<li><a onclick="Fmit.loadComment('<?php echo $this->limit;?>', '<?php echo $this->first;?>');return false;" href="javascript:void(0);"><?php echo  ($this->first); ?></a></li>
					<li><a onclick="Fmit.loadComment('<?php echo $this->limit;?>','<?php echo ($this->first + 1);?>');return false;" href="javascript:void(0);"><?php echo ( $this->first +1); ?></a></li>
					<li>...</li>				
				<?php elseif($this->firstPageInRange == ($this->first + 1)) : ?>
					<li><a onclick="Fmit.loadComment('<?php echo $this->limit;?>', '<?php echo $this->first;?>');return false;" href="javascript:void(0);"><?php echo  ($this->first); ?></a></li>
					<!--  li>...</li-->
				<?php endIf;?>	
				
				<!-- Numbered page links -->
				<?php foreach ($this->pagesInRange as $page): ?>
					<?php if ($page != $this->current):  ?>
						<li><a onclick="Fmit.loadComment('<?php echo $this->limit;?>', '<?php echo $page;?>');return false;" href="javascript:void(0);"><?php echo  $page; ?></a></li>
					<?php else: ?>
						<li class="current"><a href="javascript:void(0);"><?php echo $page; ?></a></li>
					<?php endif; ?>
				<?php endforeach; ?>	
							
				<!-- Last page link -->
				<?php if($page == ($this->last-1)) : ?>					
						<!-- li>...</li -->				
						<li><a onclick="Fmit.loadComment('<?php echo $this->limit;?>', '<?php echo $this->last;?>');return false;" href="javascript:void(0);"><?php echo  $this->last; ?></a></li>
				<?php elseif($page < ($this->last-1)) : ?>					
						<li class="tick">...</li>				
						<li><a onclick="Fmit.loadComment('<?php echo $this->limit;?>', '<?php echo ($this->last - 1);?>');return false;" href="javascript:void(0);"><?php echo  ($this->last - 1); ?></a></li>
						<li><a onclick="Fmit.loadComment('<?php echo $this->limit;?>', '<?php echo $this->last;?>');return false;" href="javascript:void(0);"><?php echo  $this->last; ?></a></li>
				<?php endif; ?>
				
				  <!-- Next page link -->
				  <li>
			<?php if (isset($this->next)): ?>
				<a onclick="Fmit.loadComment('<?php echo $this->limit;?>', '<?php echo ($this->next);?>');return false;" href="javascript:void(0);" class="next-btn">&rsaquo;</a>
			<?php else: ?>
				<a  href="javascript:void(0)" class="disabled next-btn">&rsaquo;</a>
			<?php endif; ?>
			</li>
			<!-- Last page link -->
			<li>
			<?php if (isset($this->next)): ?>
				  <a onclick="Fmit.loadComment('<?php echo $this->limit;?>', '<?php echo ($this->last);?>'); return false;" href="javascript:void(0);" class="last-btn">&raquo;</a>
			<?php else: ?>
				<a href="javascript:void(0)" class="disabled last-btn">&raquo;</a>
			<?php endif; ?>
			</li>
			</ul>		
		</div>
	</div>
</div>
<?php endif; ?>